<template>
    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="id" label="序号" width="180" />
      <el-table-column prop="oid" label="订单编号" width="180" />
      <el-table-column prop="pname" label="商品名称" width="180" />
      <el-table-column prop="pcount" label="商品数量" width="180" />
      <el-table-column prop="createtime" label="创建时间" width="180" />
      <el-table-column prop="updatetime" label="修改时间" width="180" />
    </el-table>
  </template>
  
  <script lang="ts" setup>
import { xiangqingall } from '@/api/gouwu';
import { ref } from 'vue';
let id=localStorage.getItem("id");
const tableData=ref([])
function allo(){
    xiangqingall().then(res=>{
        if(res.data.code==200){
            tableData.value=res.data.data.data
        }
    })
}
allo()
  </script>
  